import java.util.Scanner;

public class Homework0324second {
    public static void main(String[] args){
        Scanner password =new Scanner(System.in);
        System.out.println("请输入新密码（密码可以输入字母或汉字)：");
        String one =password.next();
        System.out.println("再次输入密码：");
        String two =password.next();
        if((one.equals(two))){
            System.out.println("恭喜您，注册成功!");
        }else{
            System.out.println("对不起，您两次输入的密码不一致，请重新输入!");
        }
    }
}
